package com.yun.zf.app.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yun.zf.common.admin.model.house.HouseListMo;
import com.yun.zf.common.app.domain.ZfHouseBasic;
import com.yun.zf.common.app.dto.detail.HouseDetailInfoDto;
import com.yun.zf.common.app.model.home.RecordHouseBasicInfoMo;

import java.util.List;

/**
 * <p>
 * 房源表 服务类
 * </p>
 *
 * @author cj
 * @since 2021-01-29
 */
public interface ZfHouseBasicService extends IService<ZfHouseBasic> {

 /**
  * 根据房源id 获取房源列表信息
  * @param provCode
  * @param cityCode
  * @param ids 房源id 集合
  * @return
  */
 public List<HouseListMo> houseBasic(Long provCode, Long cityCode, List<Long> ids);


 /**
  * 业主录入房源信息
  * @param houseBasicInfo
  * @return
  */
 public  int recordHouseBasic(RecordHouseBasicInfoMo houseBasicInfo);



 /**
  * 获取房源详细信息
  * @param provCode
  * @param cityCode
  * @param basicId
  * @return
  */
 public HouseDetailInfoDto getHouseDetailInfo(Long provCode, Long cityCode, Long basicId);

 public HouseDetailInfoDto getHouseAndC(Long provCode, Long cityCode, Long basicId, Long communityId,int type);

 /**
  * 同小区房源在租或者在售房源
  * @param provCode
  * @param cityCode
  * @param current
  * @param pageSize
  * @return
  */
 public Page<HouseListMo> houseBasic(Long provCode, Long cityCode, Long communityId, int type, Long houseId , int current, int pageSize);




}
